//
//  CalendarDayModel.m
//  SCXCalendar
//
//  Created by 桑赐相 on 2017/12/14.
//  Copyright © 2017年 桑赐相. All rights reserved.
//

#import "CalendarDayModel.h"

@implementation CalendarDayModel

-(NSString *)dateString{
    return [NSString stringWithFormat:@"%ld-%ld-%ld",_year,_month,_day];
}

-(id)mutableCopyWithZone:(NSZone *)zone{
    CalendarDayModel *model = [[CalendarDayModel allocWithZone:zone] init];
    model.isCurrentDate = self.isCurrentDate;
    model.isWeekend = self.isWeekend;
    model.isCurrentDay = self.isCurrentDay;
    model.isSelected = self.isSelected;
    model.year = self.year;
    model.month = self.month;
    model.day  = self.day;
    model.week = self.week;
    model.dateString = self.dateString;
    model.isPreviousMonth = self.isPreviousMonth;
    model.isNextMonth = self.isNextMonth;
    return model;
}

@end
